package com.badou.platform.util;

import com.badou.platform.model.ResourceOperEntity;
import org.apache.log4j.Logger;

public class DownloadPluginZipFactoryThread implements Runnable{

	protected static Logger logger = Logger.getLogger(DownloadPluginZipFactoryThread.class);

	ResourceOperEntity oper;
	
	public DownloadPluginZipFactoryThread(ResourceOperEntity oper){
		this.oper = oper;
	}
	@Override
	public void run() {
		try {
			DownloadPluginZipFactory.getInstance().downloadFile(oper);
		} catch (Exception e) {
			logger.error(e);
		}
	}
}
